﻿@model EditSectionEditorsViewModel
<table id="EditSectionEditorsTable">
    <tr>
        <th>
        </th>
        <th>
            מקטע
        </th>
        <th>
            סיסמת עורך
        </th>
        <th>
            אימייל
        </th>
        <th>
            שם
        </th>
        <th>
            טלפון
        </th>
        <th>
            טלפון נייד
        </th>
        <th>
            שלח מייל
        </th>
    </tr>
    @foreach (var sectionData in Model.Sections)
    {
        <tr>
            <td class="successCell">
                <img src="@Url.Content("~/Content/images/success.png")" class="transparent" />
            </td>
            <td>
                @sectionData.SectionTitle
                @Html.Hidden("AlbumSectionId", sectionData.AlbumSectionId)
            </td>
            <td class="fieldRow">
                @Html.TextBox("EditorPassword", sectionData.EditorPassword)
            </td>
            <td>
                @Html.TextBox("EditorEmail", sectionData.EditorEmail)
            </td>
            <td>
                @Html.TextBox("EditorFirstName", sectionData.EditorFirstName, new { @class = "nameTextbox" })
                @Html.TextBox("EditorLastName", sectionData.EditorLastName, new { @class = "nameTextbox" })
            </td>
            <td>
                @Html.TextBox("EditorPhone", sectionData.EditorPhone, new { @class = "phoneTextbox" })
            </td>
            <td>
                @Html.TextBox("EditorMobile", sectionData.EditorMobile, new { @class = "phoneTextbox" })
            </td>
            <td>
                <a href="" class="btnSendMailToAlbumSectionEditor">שלח סיסמה במייל</a>
            </td>
        </tr>
    }
</table>

<input id="btnSendMailToAllEditors" type="button" value="שלח מייל לכל העורכים" class="button"/>
